import cv2
# import numpy as np
import sys

img_file = sys.argv[1]
img = cv2.imshow(img_file, cv2.IMREAD_GRAYSCALE)

rows, cols = img.shape


# Sobel filter
sobel_horizontal = cv2.Sobel(img, cv2.CV_64F, 1, 0, ksize=5)
sobel_vertical = cv2.Sobel(img, cv2.CV_64F, 0, 1, ksize=5)


# Laplacian filter
denoised_img = cv2.GaussianBlur(img, (5, 5), 0)
lap_filtered_img = cv2.Laplacian(denoised_img, cv2.CV_64F)


# canny
canny_filtered_img = cv2.Canny(img, 100, 200)
